package com.dao.setting;

import org.hibernate.Query;
import org.hibernate.Session;
import org.junit.Before;
import org.junit.Test;

import com.hibernate.HibernateSessionFactory;


public class TestSALMDao {
	
	private Session session;
	
	@Before 
	public void init(){
		session  =  HibernateSessionFactory.getSession();
	}
	
	@Test
	public void testA(){
		Query  query  = session.createQuery("from SALM");
		org.junit.Assert.assertTrue(query.list().size()>0);
	}
}
